# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-yarl
_pkgname=yarl
pkgver=1.7.2
pkgrel=0
pkgdesc="Yet another URL library"
url="http://yarl.readthedocs.io/"
license="Apache-2.0"
arch="all"
depends="python3 py3-idna py3-multidict"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-pytest py3-pytest-cov"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$(echo "$PWD"/build/lib.*)" pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
ac5b630dd592ffa8b095e4d7eee2facaeac8ab578e55fd8856c6a6349f514081020c707cd0b33f250c0e78133e92ed6156835660f14c5ae54d60b4fdf6ea50ea  yarl-1.7.2.tar.gz
"
